<script type="text/javascript">
<!--
	function addIndex(column, isUnique)
	{
		var indexName = prompt('<?php echo lang('Please enter the name of the new index:')?>', '');
		var unique = isUnique ? '&unique=1' : '&unique=0';
		if (indexName && indexName.match(/^[a-z0-9_]+$/i)) location.href = '<?php echo common::url("table.php?table=$tableName&action=addindex")?>&column=' + column + '&index=' + indexName + unique;
	}
// -->
</script>